/*
 * $Id: CategoryOwner.java 1599 2011-08-21 10:44:52Z jyang $
 * 
 * Copyright (c) 2001-2008 Accentrix Company Limited. All Rights Reserved.
 */
package com.lightsaber.trade.cloth.entity.category;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lightsaber.trade.core.entity.BaseEntity;

@Entity
@Table(name = "MHPP_CATEGORY_OWNER")
public class CategoryOwner extends BaseEntity {

    private static final long serialVersionUID = 6977350082044250265L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "CATEGORY_NODE_ID")
    private CategoryNode categoryNode;

    @Column(name = "ROLE_CODE", length = 30)
    private String roleCode;

    public CategoryNode getCategoryNode() {
        return categoryNode;
    }

    public void setCategoryNode(final CategoryNode categoryNode) {
        this.categoryNode = categoryNode;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(final String roleCode) {
        this.roleCode = roleCode;
    }

}
